<script>
import Child01 from "@/components/EX/ex1/child1.vue";
import Child02 from "@/components/EX/ex1/child2.vue";

export default {
  data(){
    return{
      msg:''
    }
  },
  methods:{
    pringmsg(data){
      this.msg = data
    }
  },
  components: {Child02, Child01}
}
</script>

<template>
  <child01 @pringmsg="pringmsg"></child01>
  <hr>
  <child02 :msg="msg"></child02>
</template>

<style scoped>

</style>